#!/usr/bin/env python
#coding: utf-8

import RPi.GPIO as GPIO
import time

led=11

def openLed():
		GPIO.cleanup()
		GPIO.setmode(GPIO.BCM)
		GPIO.setup(led, GPIO.OUT)

		while True:
			#亮
			GPIO.output(led, 1)
			time.sleep(1)
			#黑
			GPIO.output(led, 0)
			time.sleep(1)

if __name__ == '__main__':
	openLed()